# -*- coding: utf-8 -*-
"""
Created on Fri Mar 26 08:52:36 2021

@author: Apple
"""


import requests

rep = requests.get('https://book.douban.com/subject/1084336/comments/')
rep.encoding = 'utf-8'

print('返回结果:%s' % rep.json())
print('城市：%s'%rep.json()['weatherinfo']['city'])
print('风向：%s'%rep.json()['weatherinfo']['WD'])
print('温度：%s'%rep.json()['weatherinfo']['temp']+'度')
print('风力：%s'%rep.json()['weatherinfo']['WS'])